package homework.ooday01._cp;

public class Student {
    String name;
    int age;
    String className;
    String stuId;
    public Student(){

    }
    public Student(String name,int age){
        this.name = name;
        this.age = age;
    }
    public Student(String name,int age,String className,String stuId){
        this.name = name;
        this.age = age;
        this.className = className;
        this.stuId = stuId;
    }

    public void study(){
        System.out.println(name+"正在学习");
    }
    public void sayHi(){
        System.out.println(name+"今年"+age+"岁大了，正在"+className+"班级，学号是"+stuId);
    }
    public void playWith(String anotherName){
        System.out.println(name+"愿意和"+anotherName+"一起玩");
    }
}
